package com.example.passport.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserRoleSearchDto {
    @NotNull(message = "id不能为空")
    private Long id;
    @NotNull(message = "用户id不能为空")
    private Long userId;
    @NotNull(message = "角色id不能为空")
    private Long roleId;
}
